import Layout from "@/layout";
import emptyLayout from "@/layout/emptyRouter.vue";

export default {
    path: "/user",
    meta: {
        title: "用户管理",
        roles: ["userManage"],
        icon: "el-icon-s-custom"
    },
    component: Layout,
    redirect: "/user",
    children: [
        {
            path: "member",
            meta: {
                title: "用户列表",
                roles: ["user:member:list"],
                icon: "el-icon-document-add"
            },
            component: () => import("@/views/models/user/member/list.vue"),
            name: "MemberList"
        },
        {
            path: "member-detail",
            meta: {
                title: "用户详情",
                roles: ["user:member:detail"],
                icon: "el-icon-info",
                noCache: true,
            },
            component: () => import("@/views/models/user/memberDetail.vue"),
            name: "MemberDetail",
            hidden: true,
        },
        {
            path: "member-add",
            meta: {
                title: "添加机构管理员",
                roles: ["user:member:add"]
            },
            component: () => import("@/views/models/user/member/add.vue"),
            hidden:true,
            name: "MemberAdd"
        },
        {
            path: "member-import",
            meta: {
                title: "导入用户",
                roles: ["user:member:import"],
                icon: "el-icon-s-finance",
            },
            component: () => import("@/views/models/user/member/import.vue"),
            name: "ImportMember"
        },
        // {
        //     path: "userLog",
        //     meta: {
        //         title: "用户使用统计",
        //         roles: ["user:manager:userLog"],
        //         icon: "el-icon-s-data",
        //     },
        //     component: () => import("@/views/models/vrs/group/userLog.vue"),
        //     name: "UserLog",
        // },
    ]
};
